MEMS cap monitoring